package com.mall.service;


import com.github.pagehelper.PageInfo;
import com.mall.common.ServerResponse;
import com.mall.pojo.MmallProductWithBLOBs;
import com.mall.vo.ProductDetailVo;

public interface IProductService {
	
	public ServerResponse<String> addorUpdateProduct(MmallProductWithBLOBs product);

	public ServerResponse<String> setProductStatus(Integer productId, Integer status);

	public ServerResponse<ProductDetailVo> getDeatil(Integer productId);

	public ServerResponse<PageInfo> getList(int pageNum, int pageSize);
	
	public ServerResponse<PageInfo> searchProduct(String productName, Integer productId,int pageNum, int pageSize);

	public ServerResponse getProductDetail(Integer productId);

	public ServerResponse getProductList(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);
}    
